Black-Box Testing of Grey-Box Behavior
نویسندگان
چکیده
A key aspect of the Object-Oriented (OO) approach is that a designer can enrich an OO system by providing suitable (re-)definitions for some of the methods of the given system. Application frameworks provide good examples of such enrichment. An OO framework typically provides a number of template methods that implement specific patterns of calls to hook methods. An application developer can customize the framework by simply providing definitions, suited to the needs of the particular application, for the hook methods. The calls, made by the template methods of the framework, are dispatched at run-time to the hook methods defined in the application, thereby customizing the behavior of the template methods as well. Testing such systems should include testing the hook method call-patterns of the template methods, that is their grey-box behavior. But software vendors often do not provide the source code of their systems. This poses the challenge, how can we test the grey-box behavior of a system without being able to access and instrument the code? In this paper, we develop an approach that allows us to do this, and demonstrate it on a simple case study.
منابع مشابه
A Comparative Study of Software Testing Techniques
Software testing is the process used to measure the quality of developed computer software. It exhibits all mistakes, errors and flaws in the developed software. In this paper, the three most prevalent and commonly used software testing techniques for detecting errors are described and compared, they are: white box testing, black box testing and grey box testing. Keywords— Black box, Demonstrat...
متن کاملAn experimental assessment of module documentation-based testing
Context: Testing a module that has memory using the black-box approach has been found to be expensive and relatively ineffective. Instead, testing without knowledge of the specifications (white-box approach) may not be effective in showing whether a program has been properly implemented as stated in its specifications. We propose instead a grey-box approach called Module Documentation-based Tes...
متن کاملDistributed Black-Box Software Testing Using Negative Selection
In the software development process, testing is one of the most human intensive steps. Many researchers try to automate test case generation to reduce the manual labor of this step. Negative selection is a famous algorithm in the field of Artificial Immune System (AIS) and many different applications has been developed using its idea. In this paper we have designed a new algorithm based on nega...
متن کاملComparison and Simulation of Building Thermal Models for Effective Energy Management
Energy consumption reduction efforts in the residential buildings sector represent socio-economical, technological and environmental preoccupations which justify advanced scientific research. These lead to use inverse models to describe thermal behavior and to evaluate the energy consumption of buildings. Their principal goal is to provide supporting evidence of enhanced energy performances and...
متن کاملDivide, Denoise, and Defend against Adversarial Attacks
Deep neural networks, although shown to be a successful class of machine learning algorithms, are known to be extremely unstable to adversarial perturbations. Improving the robustness of neural networks against these attacks is important, especially for security-critical applications. To defend against such attacks, we propose dividing the input image into multiple patches, denoising each patch...
متن کامل